package com.lsy.on_line.zaixian.mapper;

import com.lsy.on_line.zaixian.model.entity.Episode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ShiYuan
 * @since 2022-07-24
 */
public interface EpisodeMapper extends BaseMapper<Episode> {

    /**
     * 根据视频id查询播放到第几集
     * @param videoId
     * @return
     */
    Episode findFirstEpisodeByVideoId(@Param("video_id") int videoId);

}
